Add RDTSCP instruction support for HVM VMX guest.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 07:46:57 +0000 (07:46 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 14 Dec 2009 07:46:57 +0000 (07:46 +0000)
commitf0308bbb5b79db5be81a511f9c33c0e147bde625
tree22353f8f0748cccb6da5e5376fa94cbf4e7d2be5
parentc16b168f1cd21cccb33964b2dae0bb5f482fb641
Add RDTSCP instruction support for HVM VMX guest.

RDTSCP is introduced in Nehalem processor on Intel platform. Like
RDTSC, RDTSCP will return the TSC value, besides, it will return the
low 32bit of TSC_AUX MSR. Currently Linux kernel will write (node_id
<< 12 | process_id) into that MSR, so that when guest execs RDTSCP, it
will also get processor information.  - This instruction is supported
for HVM only when the hardware has this capability (indicated by
cpuid).

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/cpufeature.h
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/hvm/vmx/vmx.h
xen/include/asm-x86/msr-index.h
xen/include/public/arch-x86/hvm/save.h